package com.synergy.stockflow.procure.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

@Schema
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "supplier_prices")
public class SupplierPrices {
    /**
     * 供应商价格编码
     */
    @TableId(value = "supplier_pricesId", type = IdType.ASSIGN_ID)
    @Schema(description="供应商价格编码")
    private String supplierPricesid;

    /**
     * 供应商编码
     */
    @TableField(value = "supplierprices_vendorid")
    @Schema(description="供应商编码")
    private String supplierpricesVendorid;

    /**
     * 产品编码
     */
    @TableField(value = "supplierprices_productsid")
    @Schema(description="产品编码")
    private String supplierpricesProductsid;

    /**
     * 标准采购单价
     */
    @TableField(value = "supplierprices_standardunitprice")
    @Schema(description="标准采购单价")
    private Double supplierpricesStandardunitprice;

    /**
     * 采购单价（含税）
     */
    @TableField(value = "supplierprices_purchaseunitprice")
    @Schema(description="采购单价（含税）")
    private Double supplierpricesPurchaseunitprice;

    /**
     * 折扣率
     */
    @TableField(value = "supplierprices_discountrate")
    @Schema(description="折扣率")
    private Double supplierpricesDiscountrate;

    /**
     * 增值税率
     */
    @TableField(value = "supplierprices_vatrate")
    @Schema(description="增值税率")
    private Double supplierpricesVatrate;

    /**
     * 采购单价（不含税）
     */
    @TableField(value = "supplierprices_nopurchaseunitprice")
    @Schema(description="采购单价（不含税）")
    private Double supplierpricesNopurchaseunitprice;

    /**
     * 税额
     */
    @TableField(value = "supplierprices_tax")
    @Schema(description="税额")
    private Double supplierpricesTax;

    /**
     * 提交时间
     */
    @TableField(value = "supplierprices_submissiontime")
    @Schema(description="提交时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date supplierpricesSubmissiontime;

    /**
     * 更新时间
     */
    @TableField(value = "supplierprices_updated")
    @Schema(description="更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date supplierpricesUpdated;

    @TableField(exist = false)
    @Schema(description="员工姓名")
    private String nickname;
}